﻿using Abp.Application.Services;
using Abp.Domain.Repositories;
using Camc.Quality.Dto;
using Camc.Quality.FormColRelation;
using Camc.Quality.Instruction.InstructionForm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.Instruction
{
    public class FormColRelationAppService :
              CrudAppService<
           FormColRelationEntity,
           FormColRelationDto,
           Guid,
            GetFormColRelationInput,
           CreateFormColRelationDto,
           UpdateFormColRelationDto
           >
    {
        public FormColRelationAppService(IRepository<FormColRelationEntity, Guid> repository) : base(repository)
        {


        }


        protected override IQueryable<FormColRelationEntity> CreateFilteredQuery(GetFormColRelationInput input)
        {
            return base.CreateFilteredQuery(input)
                .Where(c => c.FormRelationEntityId == input.FormRelationEntityId);

        }
    }
}
